﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000269 RID: 617
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueNousEditDiceCsReq : IMessage<ChessRogueNousEditDiceCsReq>, IMessage, IEquatable<ChessRogueNousEditDiceCsReq>, IDeepCloneable<ChessRogueNousEditDiceCsReq>, IBufferMessage
	{
		// Token: 0x17000821 RID: 2081
		// (get) Token: 0x06001BC9 RID: 7113 RVA: 0x0004FF79 File Offset: 0x0004E179
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueNousEditDiceCsReq> Parser
		{
			get
			{
				return ChessRogueNousEditDiceCsReq._parser;
			}
		}

		// Token: 0x17000822 RID: 2082
		// (get) Token: 0x06001BCA RID: 7114 RVA: 0x0004FF80 File Offset: 0x0004E180
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueNousEditDiceCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000823 RID: 2083
		// (get) Token: 0x06001BCB RID: 7115 RVA: 0x0004FF92 File Offset: 0x0004E192
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueNousEditDiceCsReq.Descriptor;
			}
		}

		// Token: 0x06001BCC RID: 7116 RVA: 0x0004FF99 File Offset: 0x0004E199
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEditDiceCsReq()
		{
		}

		// Token: 0x06001BCD RID: 7117 RVA: 0x0004FFA1 File Offset: 0x0004E1A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEditDiceCsReq(ChessRogueNousEditDiceCsReq other) : this()
		{
			this.queryDiceInfo_ = ((other.queryDiceInfo_ != null) ? other.queryDiceInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001BCE RID: 7118 RVA: 0x0004FFD6 File Offset: 0x0004E1D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEditDiceCsReq Clone()
		{
			return new ChessRogueNousEditDiceCsReq(this);
		}

		// Token: 0x17000824 RID: 2084
		// (get) Token: 0x06001BCF RID: 7119 RVA: 0x0004FFDE File Offset: 0x0004E1DE
		// (set) Token: 0x06001BD0 RID: 7120 RVA: 0x0004FFE6 File Offset: 0x0004E1E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDice QueryDiceInfo
		{
			get
			{
				return this.queryDiceInfo_;
			}
			set
			{
				this.queryDiceInfo_ = value;
			}
		}

		// Token: 0x06001BD1 RID: 7121 RVA: 0x0004FFEF File Offset: 0x0004E1EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueNousEditDiceCsReq);
		}

		// Token: 0x06001BD2 RID: 7122 RVA: 0x0004FFFD File Offset: 0x0004E1FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueNousEditDiceCsReq other)
		{
			return other != null && (other == this || (object.Equals(this.QueryDiceInfo, other.QueryDiceInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001BD3 RID: 7123 RVA: 0x00050030 File Offset: 0x0004E230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.queryDiceInfo_ != null)
			{
				num ^= this.QueryDiceInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001BD4 RID: 7124 RVA: 0x0005006C File Offset: 0x0004E26C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001BD5 RID: 7125 RVA: 0x00050074 File Offset: 0x0004E274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001BD6 RID: 7126 RVA: 0x0005007D File Offset: 0x0004E27D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.queryDiceInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.QueryDiceInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001BD7 RID: 7127 RVA: 0x000500B0 File Offset: 0x0004E2B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.queryDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.QueryDiceInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001BD8 RID: 7128 RVA: 0x000500F0 File Offset: 0x0004E2F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueNousEditDiceCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.queryDiceInfo_ != null)
			{
				if (this.queryDiceInfo_ == null)
				{
					this.QueryDiceInfo = new ChessRogueDice();
				}
				this.QueryDiceInfo.MergeFrom(other.QueryDiceInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001BD9 RID: 7129 RVA: 0x00050144 File Offset: 0x0004E344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001BDA RID: 7130 RVA: 0x00050150 File Offset: 0x0004E350
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.queryDiceInfo_ == null)
					{
						this.QueryDiceInfo = new ChessRogueDice();
					}
					input.ReadMessage(this.QueryDiceInfo);
				}
			}
		}

		// Token: 0x04000B9C RID: 2972
		private static readonly MessageParser<ChessRogueNousEditDiceCsReq> _parser = new MessageParser<ChessRogueNousEditDiceCsReq>(() => new ChessRogueNousEditDiceCsReq());

		// Token: 0x04000B9D RID: 2973
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B9E RID: 2974
		public const int QueryDiceInfoFieldNumber = 3;

		// Token: 0x04000B9F RID: 2975
		private ChessRogueDice queryDiceInfo_;
	}
}
